﻿using Application.AppService.EMRAppService;
using AutoMapper;
using Domain.Entity;
using EFCore;
using Microsoft.AspNetCore.Mvc;

namespace UI.Controllers.RecruitmentManagement_招聘管理_.Post_Publication_Management_职位发布管理_
{
    public class EMRController : Controller
    {
        private readonly IEMRAppService emrAppService;
        private readonly IMapper mapper;

        public EMRController(IEMRAppService emrAppService, IMapper mapper)
        {
            this.emrAppService = emrAppService;
            this.mapper = mapper;
        }
        public IActionResult Index()
        {
            return View();
        }
        //添加
        [HttpPost]
        public async Task<IActionResult> Add(EMR emr)
        {
            int rs = await emrAppService.AddEMR(emr);
            return Json(rs);
        }
        
    }
}
